<!DOCTYPE html>

<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">

<title>module ApplicationHelper - Rails Application Documentation</title>

<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
</script>

<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>


<body id="top" class="module">
<nav id="metadata">
  <nav id="home-section" class="section">
  <h3 class="section-header">
    <a href="./index.html">Home</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </h3>
</nav>


  <nav id="search-section" class="section project-section" class="initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <h3 class="section-header">
      <input type="text" name="search" placeholder="Search" id="search-field"
             title="Type to search, Up and Down to navigate, Enter to load">
    </h3>
  </form>

  <ul id="search-results" class="initially-hidden"></ul>
</nav>


  <div id="file-metadata">
    <nav id="file-list-section" class="section">
  <h3 class="section-header">Defined In</h3>
  <ul>
    <li>app/helpers/application_helper.rb
  </ul>
</nav>

    
  </div>

  <div id="class-metadata">
    
    
    
    <!-- Method Quickref -->
<nav id="method-list-section" class="section">
  <h3 class="section-header">Methods</h3>

  <ul class="link-list">
    
    <li><a href="#method-i-group_path">#group_path</a>
    
    <li><a href="#method-i-reg_http_host_port">#reg_http_host_port</a>
    
    <li><a href="#method-i-return_to">#return_to</a>
    
    <li><a href="#method-i-store_location">#store_location</a>
    
    <li><a href="#method-i-url_mask">#url_mask</a>
    
  </ul>
</nav>

  </div>

  <div id="project-metadata">
    <nav id="fileindex-section" class="section project-section">
  <h3 class="section-header">Pages</h3>

  <ul>
  
    <li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a>
  
  </ul>
</nav>

    <nav id="classindex-section" class="section project-section">
  <h3 class="section-header">Class and Module Index</h3>

  <ul class="link-list">
  
    <li><a href="./SOA.html">SOA</a>
  
    <li><a href="./SOA/APP.html">SOA::APP</a>
  
    <li><a href="./Activity.html">Activity</a>
  
    <li><a href="./ApplicationController.html">ApplicationController</a>
  
    <li><a href="./ApplicationHelper.html">ApplicationHelper</a>
  
    <li><a href="./Bpel.html">Bpel</a>
  
    <li><a href="./Bpmn.html">Bpmn</a>
  
    <li><a href="./Component.html">Component</a>
  
    <li><a href="./ComponentsController.html">ComponentsController</a>
  
    <li><a href="./ComponentsHelper.html">ComponentsHelper</a>
  
    <li><a href="./Composite.html">Composite</a>
  
    <li><a href="./CompositeGroup.html">CompositeGroup</a>
  
    <li><a href="./CompositeSOA.html">CompositeSOA</a>
  
    <li><a href="./CompositesController.html">CompositesController</a>
  
    <li><a href="./CompositesHelper.html">CompositesHelper</a>
  
    <li><a href="./HomeController.html">HomeController</a>
  
    <li><a href="./HomeHelper.html">HomeHelper</a>
  
    <li><a href="./Mailsend.html">Mailsend</a>
  
    <li><a href="./Pom.html">Pom</a>
  
    <li><a href="./Reference.html">Reference</a>
  
    <li><a href="./ReferencesController.html">ReferencesController</a>
  
    <li><a href="./ReferencesHelper.html">ReferencesHelper</a>
  
    <li><a href="./Report.html">Report</a>
  
    <li><a href="./ReportsController.html">ReportsController</a>
  
    <li><a href="./ReportsHelper.html">ReportsHelper</a>
  
    <li><a href="./Service.html">Service</a>
  
    <li><a href="./ServicesController.html">ServicesController</a>
  
    <li><a href="./ServicesHelper.html">ServicesHelper</a>
  
    <li><a href="./Svn.html">Svn</a>
  
    <li><a href="./Version.html">Version</a>
  
    <li><a href="./Xml.html">Xml</a>
  
  </ul>
</nav>

  </div>
</nav>

<div id="documentation">
  <h1 class="module">module ApplicationHelper</h1>

  <div id="description" class="description">
    
  </div><!-- description -->

  
  
  
  <section id="5Buntitled-5D" class="documentation-section">
    

    

    

    

    <!-- Methods -->
    
     <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
      <h3 class="section-header">Public Instance Methods</h3>

    
      <div id="method-i-group_path" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">group_path</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="group_path-source">
            <pre><span class="ruby-comment"># File app/helpers/application_helper.rb, line 20</span>
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">group_path</span>
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:group_path</span>]
      <span class="ruby-identifier">session</span>[<span class="ruby-value">:group_path</span>] = <span class="ruby-identifier">params</span>[<span class="ruby-value">:group_path</span>]
    <span class="ruby-keyword">elsif</span> <span class="ruby-operator">!</span><span class="ruby-identifier">session</span>[<span class="ruby-value">:group_path</span>]
      <span class="ruby-identifier">session</span>[<span class="ruby-value">:group_path</span>] = <span class="ruby-string">&quot;&quot;</span>
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">session</span>[<span class="ruby-value">:group_path</span>]
<span class="ruby-keyword">end</span></pre>
          </div><!-- group_path-source -->
          
        </div>

        

        
      </div><!-- group_path-method -->

    
      <div id="method-i-reg_http_host_port" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">reg_http_host_port</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="reg_http_host_port-source">
            <pre><span class="ruby-comment"># File app/helpers/application_helper.rb, line 4</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">reg_http_host_port</span>
  <span class="ruby-regexp">/[a-z0-9_\-]{1,5}:\/\/(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6})(:[0-9]{1,4})?/</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- reg_http_host_port-source -->
          
        </div>

        

        
      </div><!-- reg_http_host_port-method -->

    
      <div id="method-i-return_to" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">return_to</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="return_to-source">
            <pre><span class="ruby-comment"># File app/helpers/application_helper.rb, line 12</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">return_to</span>
    <span class="ruby-identifier">session</span>[<span class="ruby-value">:return_to</span>]
<span class="ruby-keyword">end</span></pre>
          </div><!-- return_to-source -->
          
        </div>

        

        
      </div><!-- return_to-method -->

    
      <div id="method-i-store_location" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">store_location</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="store_location-source">
            <pre><span class="ruby-comment"># File app/helpers/application_helper.rb, line 8</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">store_location</span>
    <span class="ruby-identifier">session</span>[<span class="ruby-value">:return_to</span>] = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">url</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- store_location-source -->
          
        </div>

        

        
      </div><!-- store_location-method -->

    
      <div id="method-i-url_mask" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">url_mask</span><span
            class="method-args">(url)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="url_mask-source">
            <pre><span class="ruby-comment"># File app/helpers/application_helper.rb, line 16</span>
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">url_mask</span>(<span class="ruby-identifier">url</span>)
  <span class="ruby-identifier">url</span>.<span class="ruby-identifier">gsub</span> <span class="ruby-identifier">reg_http_host_port</span>, <span class="ruby-string">'http://[host]:[port]'</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- url_mask-source -->
          
        </div>

        

        
      </div><!-- url_mask-method -->

    
    </section><!-- public-instance-method-details -->
  
  </section><!-- 5Buntitled-5D -->

</div><!-- documentation -->


<footer id="validator-badges">
  <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
  <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
  <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
</footer>

